package com.bestcem.xm.txtanls.service.dto.record;

import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

/**
 * 导出原话记录响应信息DTO
 *
 * @author liheng
 * @version v1.0
 * @date 2021/5/19 15:04
 */
@Data
@NoArgsConstructor
public class DownloadRecordDTO {

    /**
     * 文件名
     */
    private String fileName;

    /**
     * 文件url
     */
    private String url;

    /**
     * 文件类型
     */
    private String fileType;

    /**
     * 文件大小
     */
    private Long fileSize;

    /**
     * 导出数据
     */
    private List<ExportRecordDTO> exportData;

    public DownloadRecordDTO(String fileName, String url, String fileType, Long fileSize) {
        this.fileName = fileName;
        this.url = url;
        this.fileType = fileType;
        this.fileSize = fileSize;
    }

    public DownloadRecordDTO(String fileName, String url, String fileType, Long fileSize, List<ExportRecordDTO> exportData) {
        this.fileName = fileName;
        this.url = url;
        this.fileType = fileType;
        this.fileSize = fileSize;
        this.exportData = exportData;
    }
}
